﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShenLanCMS.Models
{
    /// <summary>
    /// 搜索
    /// </summary>
    public class Search
    {
        [System.ComponentModel.DataAnnotations.Key]
        public Guid SearchID { get; set; }

        /// <summary>
        /// 关键词
        /// </summary>
        [Display(Name = "关键词")]
        [StringLength(64, ErrorMessage = "关键词不能超过{1}个字符")]
        public string Keyword { get; set; }

        /// <summary>
        /// 搜索时间
        /// </summary>
        [Display(Name="搜索时间")]
        public DateTime SearchTime { get; set; }

        /// <summary>
        /// 点击量
        /// </summary>
        [Display(Name = "点击量")]
        public int Click { get; set; }

        /// <summary>
        /// 搜索结果数
        /// </summary>
        [Display(Name = "搜索结果数")]
        public int ResultCount { get; set; }
    }
}
